package com.griftt.rent.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import service.UserRentService;

/**
 * @auther: Griftt wu
 * @date: 2019/9/16
 **/
@Controller
@RequestMapping("user")
public class UserController {

    @Autowired
    private UserRentService userRentService;

    @ResponseBody
    @PostMapping("info")
    public Object getmsg(Integer id){

        return userRentService.getMsg(id);
    }

}
